import service from "@/utils/request.js"
/**
 * 登录
 */
export function login(data = {}){
    return service.request({
        url: "/api/v1/login",
        method: "post",
        data
    })
}

/**
 * 登出
 */
export function logout(data = {}){
    return service.request({
        url: "/api/v1/logout",
        method: "post",
        data
    })
}

/**
 * 获取权限
 */
export function getUserAuth(data = {}){
    return service.request({
        url: "/api/v1/user/auth",
        method: "post",
        data
    })
}